﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="true" Inherits="Admin_ConstituentInformation" Codebehind="ConstituentInformation.aspx.cs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" Runat="Server">
    <link href="../Styles/jquery-ui.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/jquery.min.js" type="text/javascript"></script>
    <script src="../Scripts/jquery-ui.min.js" type="text/javascript"></script>
<script type="text/javascript" language="javascript">
    $(function () {
        $("#tabs").tabs();
    });
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphTitle" runat="server">    
        <h1><asp:Label ID="lblName" runat="server" /></h1>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphBody" Runat="Server">
    <div id="viewform">
        
    </div>
    <br />
    <div id="tabs">
        <ul>
            <li><a href="#tabs-1">Addresses</a></li>
            <li><a href="#tabs-2">Phones</a></li>
            <li><a href="#tabs-3">Emails</a></li>
            <li><a href="#tabs-4">Contacts</a></li>
        </ul>
        <div id="tabs-1">
            <p>
                <asp:GridView ID="grvAddresses" runat="server" AutoGenerateColumns="false" EmptyDataText="No addresses on file.">
                    <Columns>
                        <asp:BoundField DataField="ADDRESSBLOCK" HeaderText="Address" />
                        <asp:BoundField DataField="POSTCODE" HeaderText="Post code" />
                        <asp:TemplateField HeaderText="State">
                            <ItemTemplate>
                                <%#DataBinder.Eval(Container.DataItem, "State.Abbreviation") %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Country">
                            <ItemTemplate>
                                <%#DataBinder.Eval(Container.DataItem, "Country.Abbreviation")%>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Type">
                            <ItemTemplate>
                                <%#DataBinder.Eval(Container.DataItem, "AddressType.Description")%>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </p>
        </div>
        <div id="tabs-2">
            <p>
                <asp:GridView ID="grvPhones" runat="server" AutoGenerateColumns="false" EmptyDataText="No phone numbers on file.">
                    <Columns>
                        <asp:BoundField DataField="NUMBER" HeaderText="Number" />
                        <asp:TemplateField HeaderText="Type">
                            <ItemTemplate>
                                <%#DataBinder.Eval(Container.DataItem, "PhoneType.Description")%>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </p>
        </div>
        <div id="tabs-3">
            <p>
                <asp:GridView ID="grvEmails" runat="server" AutoGenerateColumns="false" EmptyDataText="No emails on file.">
                    <Columns>
                        <asp:BoundField DataField="EMAILADDRESS" HeaderText="Email address" />
                        <asp:TemplateField HeaderText="Type">
                            <ItemTemplate>
                                <%#DataBinder.Eval(Container.DataItem, "EmailAddressType.Description")%>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </p>
        </div>
        <div id="tabs-4">
            <p>blah 4</p>
        </div>
    </div>

</asp:Content>